package lu.med.praxiswahl.wahlumed.client.arztdatabase;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
 * 
 * @author Lars Holger Roth
 */
public class ArztNewDatasetButtonActionListener implements ActionListener
{
    private ArztNewDatasetDialog win;
    private ArztTableModel model;

    public ArztNewDatasetButtonActionListener(ArztNewDatasetDialog win,
	    ArztTableModel model, ArztOptionsDialog owner)
    {
	this.win = win;
	this.model = model;
    }

    @Override
    public void actionPerformed(ActionEvent e)
    {
	model.addRow(win.getDataset());
	win.setVisible(false);
    }
}
